let obj = {
  name: "kkk",
};

type type_obj = keyof typeof obj;

Object.keys(obj).forEach((key: string) => {
  console.log(obj[key as type_obj]);
});
